<?php
set_include_path('../:' . get_include_path());

require_once 'Services/Plazes.php';

$username = '';
$password = '';

try {
    // plaze_id of the plazesHQ
    $params = array('plaze_id' => 87873, 'status' => 'Services_Plazes: foobar');

    $plazes = Services_Plazes::factory(
        $username,
        $password,
        'https://sandbox.plazes.com');

    var_dump($plazes->activities->createActivity($params));

} catch (Services_Plazes_Adapter_Activities_Exception $e) {

    echo 'Error creating activity: ' . $e->getMessage();

} catch (Exception $e) {

    echo $e->getMessage();

}
?>
